﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Novel.Common
{
   public class UrlHelper
    {
       public static string GetCompleteUrl(string url)
       {
          
           if (url.LastIndexOf("/") != url.Length - 1)
           {
               string u = url.Substring(url.LastIndexOf("/"), url.Length - url.LastIndexOf("/"));
               if (!(u.Contains(".") || u.Contains("&")))
               {
                   url = url + "/";
               }
           }
           return url;
       }
    }
}
